// 导入
import Toast from './packages/toast'
import Popup from './packages/popup'

const install = function(Vue) {
    Vue.component(Popup.name, Popup)
    Vue.$Toast = Vue.prototype.$Toast = Toast
}

//自动 install
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue)
}

export default install